package com.brainhealth.customer.domain;

import com.brainhealth.common.enums.ShowStatus;
import com.brainhealth.common.enums.LearnType;
import com.brainhealth.common.enums.VideoType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 学习库对象 learn
 * 
 * @author wolong
 * @date 2023-04-23
 */
public class Learn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public Learn()
    {
        lstLearnCategory = new ArrayList<>();
    }

    /** 学习库主键 */
    private Long learnId;

    /** 关联学习库分类主键 */
    @Excel(name = "关联学习库分类主键")
    private Long learnCategoryId;

    /** 学习库名称 */
    @Excel(name = "学习库名称")
    private String name;

    /**
     * 学习库类型
     */
    private LearnType learnType;

    /**
     * 视频显示方式
     */
    private VideoType videoType;

    /**
     * 视频时长
     */
    private Long videoTime;

    /**
     * 学习库类型名称
     */
    private String learnTypeName;

    /** 学习库描述 */
    @Excel(name = "学习库描述")
    private String description;

    /** 学习库图片地址 */
    @Excel(name = "学习库图片地址")
    private String pictureUrl;

    /** 学习库连接地址 */
    @Excel(name = "学习库连接地址")
    private String url;

    /** 学习库内容富文本 */
    @Excel(name = "学习库内容富文本")
    private String learnContent;

    /** 学习库上下架 0 下架 1 上架 */
    @Excel(name = "学习库上下架 0 下架 1 上架")
    private ShowStatus status;

    /**
     * 学习状态名称
     */
    private String statusName;

    /**
     * 是否已经收藏
     */
    private boolean isCollect;

    public LearnType getLearnType()
    {
        return learnType;
    }

    public void setLearnType(LearnType learnType)
    {
        this.learnType = learnType;
    }

    /**
     * 学习库对应的所有分类内容
     */
    private List<LearnCategory> lstLearnCategory;

    public boolean isCollect()
    {
        return isCollect;
    }

    public void setCollect(boolean collect)
    {
        isCollect = collect;
    }

    public VideoType getVideoType()
    {
        return videoType;
    }

    public void setVideoType(VideoType videoType)
    {
        this.videoType = videoType;
    }

    public Long getVideoTime()
    {
        return videoTime;
    }

    public void setVideoTime(Long videoTime)
    {
        this.videoTime = videoTime;
    }

    public String getLearnTypeName()
    {
        return learnTypeName;
    }

    public void setLearnTypeName(String learnTypeName)
    {
        this.learnTypeName = learnTypeName;
    }

    public List<LearnCategory> getLstLearnCategory()
    {
        return lstLearnCategory;
    }

    public void setLstLearnCategory(List<LearnCategory> lstLearnCategory)
    {
        this.lstLearnCategory = lstLearnCategory;
    }

    public String getStatusName()
    {
        return statusName;
    }

    public void setStatusName(String statusName)
    {
        this.statusName = statusName;
    }


    public void setLearnId(Long learnId)
    {
        this.learnId = learnId;
    }

    public Long getLearnId() 
    {
        return learnId;
    }
    public void setLearnCategoryId(Long learnCategoryId) 
    {
        this.learnCategoryId = learnCategoryId;
    }

    public Long getLearnCategoryId() 
    {
        return learnCategoryId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPictureUrl(String pictureUrl) 
    {
        this.pictureUrl = pictureUrl;
    }

    public String getPictureUrl() 
    {
        return pictureUrl;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setLearnContent(String learnContent) 
    {
        this.learnContent = learnContent;
    }

    public String getLearnContent() 
    {
        return learnContent;
    }

    public ShowStatus getStatus()
    {
        return status;
    }

    public void setStatus(ShowStatus status)
    {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("learnId", getLearnId())
            .append("learnCategoryId", getLearnCategoryId())
            .append("name", getName())
            .append("description", getDescription())
            .append("pictureUrl", getPictureUrl())
            .append("url", getUrl())
            .append("learnContent", getLearnContent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
